package com.casic.modules.sys.service.impl;

import com.casic.modules.sys.entity.SysUserEntity;
import com.casic.modules.sys.entity.VO.SysAppversionVO;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.casic.common.base.service.impl.BaseServiceImpl;

import com.casic.modules.sys.dao.SysAppversionDao;
import com.casic.modules.sys.entity.SysAppversionEntity;
import com.casic.modules.sys.service.SysAppversionService;

import java.util.List;


@Service("sysAppversionService")
public class SysAppversionServiceImpl extends BaseServiceImpl<SysAppversionDao,SysAppversionEntity>  implements SysAppversionService {


    @Autowired
    public void setDao(SysAppversionDao sysAppversionDao) {
        this.dao=sysAppversionDao;
    }

    @Override
    public SysAppversionVO findVersion() {
        int currentPage=1;
        int pageSize=1;
        PageHelper.startPage(currentPage, pageSize);
        SysAppversionVO data=this.dao.selectVersion();
        return data;
    }
}
